package com.csd.jwt.controller;

import com.csd.jwt.util.ResponseBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: UserController
 * @description:
 * @author: 刘子奇
 * @date: 2019/12/9 17:11
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping(value = "/getUser", method = RequestMethod.POST)
    public ResponseBean getUser(@RequestParam String username) {
        return new ResponseBean(200,"success",username);
    }

}
